package com.service;

import java.util.List;

import com.dao.FileDao;
import com.entity.File;

public class FileService {

	FileDao dao=new FileDao();
	
	public List<File> getAll() {
		return dao.getAll();
	}

	public void add(com.entity.File ff) {
		dao.add(ff);
	}

	public File getById(String id) {
		return dao.getById(id);
	}

	public void deleteById(String id) {
		dao.deleteById(id);
	}
	
	public long getSizeById(String id){
		return dao.getSizeById(id);
	}
	
	public int getNum(String id){
		return dao.getNum(id);
	}

	public void deleteByFTId(String id) {
		dao.deleteByFTId(id);
	}

}
